<?php
include_once '../db_conecta_adodb.inc.php';
include_once '../function.inc.php';
$fecha=$_GET['fecha'];
$anular=$_GET['anular'];
if ($anular==1){
	sql("DELETE FROM u172676809_fcac.T_CANCEL_DAYS WHERE DT_DATE=STR_TO_DATE(?,'%Y-%m-%d')",array($fecha));
}else{
	sql("INSERT INTO u172676809_fcac.T_CANCEL_DAYS (DT_DATE) VALUES (STR_TO_DATE(?,'%Y-%m-%d'))",array($fecha));
}